package com.wpp.rabbitmq.a_simple;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author wpp25
 * @date 2019/11/19 21:18
 * @description：
 */
@RabbitListener(queues = "01_simple_queue")
@Component
public class SimpleListener {

    @RabbitHandler
    public void testListener(String message) {
        System.out.printf("简单模式，无交换机 %s",message);
    }
}
